package com.du.fileload.framework.config;

import com.du.fileload.framework.utils.DiskCapacityUtils;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * 文件缓存配置文件
 */
@Component
@ConfigurationProperties(prefix = "fileloadcache")
public class DFileCache {

    /**
     * 文件缓存大小限制 kb
     */
    private static long limieLen=200*1024;

    public long getLimieLen() {
        return limieLen;
    }

    public void setLimieLen(String limieLen) {
        this.limieLen = DiskCapacityUtils.getFileLen(limieLen);
    }

}
